<div class="logo left">
	<a href="<?= URL::base(); ?>">
		<img src="<?= URL::base() . 'media/site/src/logo.jpg';?>" alt="Subteteca" />
	</a>
</div>
<div class="user_info right">
<? if(Auth::instance()->logged_in() != 0) {?>
Hola, 
<span class="username"><?= Auth::instance()->get_user()->username ?></span>
<a href="<?= URL::site('user/account') ?>">Mi cuenta</a>
<a href="<?= URL::site('user/logout/?tk=' . Security::token())?>">Cerrar sesión</a>
<?}else{?>
<a href="<?= URL::site("user/register") ?>">Crear cuenta</a>
<a href="<?= URL::site("user/login") ?>">Iniciar sesión</a>
<?}?>
</div>
<div class="clear"></div>
<? 
if(isset($menu)) {
?>
<div class="header_menu">
	<div class="left">
		<?
		foreach($menu as $href => $value) {
		?>
			<a href="<?= $href ?>"><?= $value ?></a>
		<?
		}
		?>
	</div>
	<div class="right">
		<?
		if(isset($admin_menu)) {
			foreach($admin_menu as $href => $value) {
			?>
				<a href="<?= $href ?>"><?= $value ?></a>
			<?
			}
		}
		?>
	</div>
	<div class="clear"></div>
</div>
<?
}
?>
